﻿using RuoVea.ExEnum;
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace RuoVea.Entity
{
    /// <summary>
    /// 用户表
    /// </summary>
    [SugarTable("vita_account")]
    [Description("人间用户表")]
    public class VitaAccount : DEntityBase
    {
        /// <summary>
        /// 账号
        /// </summary>
        [Required, MaxLength(20)]
        public string Account { get; set; }

        /// <summary>
        /// 密码（默认MD5加密）
        /// </summary>
        [Required, MaxLength(50)]
        public string Password { get; set; }

        /// <summary>
        /// 密码秘钥
        /// </summary>
        [Required, MaxLength(50)]
        public string Secretkey { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [MaxLength(20)]
        public string NickName { get; set; }

        /// <summary>
        /// 状态启用禁用
        /// </summary>
        public StatusEnum Status { get; set; } = StatusEnum.ENABLE;
    }
}
